﻿
using System;

namespace SimpleStore
{
	public class TaxCalculator
	{
		private double _taxRate;
		
		#region Properties
		public double TaxRate {
			get { return _taxRate; }
		}
		#endregion
		
		#region Constructors
		public TaxCalculator(double taxRate) {
			_taxRate = taxRate;
		}
		#endregion
		
		public virtual double CalculateTaxAmount(double basePrice) {
			return basePrice * (_taxRate / 100);
		}
	}
}
